package com.juli.school.app.controller;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.juli.school.service.bo.ContestBo;
import com.juli.school.service.bo.ErBo;
import com.juli.school.service.bo.GroupBo;
import com.juli.school.service.bo.GroupSmsBo;
import com.juli.school.service.bo.HonorBo;
import com.juli.school.service.bo.JobBo;
import com.juli.school.service.bo.LegBo;
import com.juli.school.service.bo.LoveBo;
import com.juli.school.service.bo.MallBo;
import com.juli.school.service.bo.MindBo;
import com.juli.school.service.bo.MissBo;
import com.juli.school.service.bo.NewsBo;
import com.juli.school.service.bo.PointBo;
import com.juli.school.service.bo.SmartBo;
import com.juli.school.service.impl.AppUpdateService;
import com.juli.school.utils.core.model.CommonResp;

@Controller
@RequestMapping("/ssm")
public class AppUpdateController {
	
	@Resource
	AppUpdateService appUpdateService;
	
	@RequestMapping("/updateTableMiss")
	@ResponseBody CommonResp<Boolean> updateTableMiss(MissBo miss){
		return appUpdateService.updateTableMiss(miss);
	}
	
	@RequestMapping("/updateTableSmart")
	@ResponseBody CommonResp<Boolean> updateTableSmart(SmartBo smart){
		return appUpdateService.updateTableSmart(smart);
	}
	
	@RequestMapping("/updateTableLove")
	@ResponseBody CommonResp<Boolean> updateTableLove(LoveBo love){
		return appUpdateService.updateTableLove(love);
	}
	
	@RequestMapping("/updateTableGroup")
	@ResponseBody CommonResp<Boolean> updateTableGroup(GroupBo group){
		return appUpdateService.updateTableGroup(group);
	}
	
	@RequestMapping("/updateTableGroupSms")
	@ResponseBody CommonResp<Boolean> updateTableGroupSms(GroupSmsBo groupSms){
		return appUpdateService.updateTableGroupSms(groupSms);
	}
	
	@RequestMapping("/updateTableNews")
	@ResponseBody CommonResp<Boolean> updateTableNews(NewsBo news){
		return appUpdateService.updateTableNews(news);
	}
	
	@RequestMapping("/updateTableContest")
	@ResponseBody CommonResp<Boolean> updateTableContest(ContestBo contest){
		return appUpdateService.updateTableContest(contest);
	}
	
	@RequestMapping("/updateTableMall")
	@ResponseBody CommonResp<Boolean> updateTableMall(MallBo mall){
		return appUpdateService.updateTableMall(mall);
	}
	
	@RequestMapping("/updateTableJob")
	@ResponseBody CommonResp<Boolean> updateTableJob(JobBo job){
		return appUpdateService.updateTableJob(job);
	}
	
	@RequestMapping("/updateTablePoint")
	@ResponseBody CommonResp<Boolean> updateTablePoint(PointBo point){
		return appUpdateService.updateTablePoint(point);
	}
	
	@RequestMapping("/updateTableMind")
	@ResponseBody CommonResp<Boolean> updateTableMind(MindBo mind){
		return appUpdateService.updateTableMind(mind);
	}
	
	@RequestMapping("/updateTableLeg")
	@ResponseBody CommonResp<Boolean> updateTableLeg(LegBo leg){
		return appUpdateService.updateTableLeg(leg);
	}
	
	@RequestMapping("/updateTableEr")
	@ResponseBody CommonResp<Boolean> updateTableEr(ErBo er){
		return appUpdateService.updateTableEr(er);
	}
	
	@RequestMapping("/updateTableHonor")
	@ResponseBody CommonResp<Boolean> updateTableHonor(HonorBo honor){
		return appUpdateService.updateTableHonor(honor);
	}
}
